
<!DOCTYPE html>
<html lang="zh-cn">
<head>
    <meta charset="utf-8">
    <title>欢迎使用TPCMS</title>

    <style type="text/css">

    ::selection{ background-color: #E13300; color: white; }
    ::moz-selection{ background-color: #E13300; color: white; }
    ::webkit-selection{ background-color: #E13300; color: white; }

    body {
        background-color: #fff;
        margin: 40px;
        font: 13px/20px normal Helvetica, Arial, sans-serif;
        color: #4F5155;
    }

    a {
        color: #003399;
        background-color: transparent;
        font-weight: normal;
    }

    h1 {
        color: #444;
        background-color: transparent;
        border-bottom: 1px solid #D0D0D0;
        font-size: 19px;
        font-weight: normal;
        margin: 0 0 14px 0;
        padding: 14px 15px 10px 15px;
    }

    code {
        font-family: Consolas, Monaco, Courier New, Courier, monospace;
        font-size: 12px;
        background-color: #f9f9f9;
        border: 1px solid #D0D0D0;
        color: #002166;
        display: block;
        margin: 14px 0 14px 0;
        padding: 12px 10px 12px 10px;
    }

    #body{
        margin: 0 15px 0 15px;
    }
    
    p.footer{
        text-align: right;
        font-size: 11px;
        border-top: 1px solid #D0D0D0;
        line-height: 32px;
        padding: 0 10px 0 10px;
        margin: 20px 0 0 0;
    }
    
    #container{
        margin: 10px;
        border: 1px solid #D0D0D0;
        -webkit-box-shadow: 0 0 8px #D0D0D0;
    }
    </style>
</head>
<body>

<div id="container">
    <h1>欢迎使用TPCMS! ,网址：<a href="http://www.speakphp.com">http://www.speakphp.com</a></h1>

    <div id="body">

      
       
        <p>详细说明：<br>请求地址：<?php echo U("ad/index");?></p>
        
        
        <p>请求参数：</p>
        <p>typeid //广告类型ID 整形 必填</p>
        <p>返回值如下：</p>
        <code style="color:red">
          
            <ul>
                <li>
                <pre>
                	{
    "status": 1,
    "message": "获取成功",
    "list": {
        "info": {
            "id": "28",
            "typename": "产品页面广告图",
            "updatetime": "2015-10-20",
            "info": "产品页面广告图",
            "pic": "http://www.tpcms.com/Data/Upload/Adtype/20151020/562658ed1da4c.jpg",
            "addtime": "2015-10-20",
            "status": "1"
        },
        "list": [
            {
                "id": "47",
                "name": "wwwww",
                "pic": "http://www.tpcms.com/Data/Upload/Ad/20151026/562e3f36ebb48.jpg",
                "pic2": "http://www.tpcms.com/Data/Upload/Ad/20151026/562e3f39149e3.jpg",
                "pic_des": "fffff",
                "pic_url": "",
                "words": "",
                "ad_type": "28",
                "type": "0",
                "status": "1",
                "addtime": "2015-10-26 22:57",
                "begin_date": "2015-10-26 22:57",
                "end_date": "2015-11-07 22:57",
                "add_person": "wangjian",
                "attr_1": "f",
                "attr_2": "ff",
                "weight": "3232"
            },
            {
                "id": "45",
                "name": "产品页面1",
                "pic": "http://www.tpcms.com/Data/Upload/Ad/20151020/562659033610b.jpg",
                "pic2": "http://www.tpcms.com/Data/Upload/Ad/20151020/5626590524f9e.jpg",
                "pic_des": "呆呆呆呆呆呆地",
                "pic_url": "http://www.speakphp.com",
                "words": "",
                "ad_type": "28",
                "type": "0",
                "status": "1",
                "addtime": "2015-10-20 23:09",
                "begin_date": "2015-10-20 23:09",
                "end_date": "2015-10-30 23:09",
                "add_person": "wangjian",
                "attr_1": "3",
                "attr_2": "3",
                "weight": "1"
            }
        ]
    }
}

</pre>
                </li>
                
			</ul>
        </code>
       
 <code >
 	<ul>
 		<li>
 		<pre>
		"info": {
		            "id": "28",
		            "typename": "产品页面广告图",
		            "updatetime": "2015-10-20",
		            "info": "产品页面广告图",
		            "pic": "http://www.tpcms.com/Data/Upload/Adtype/20151020/562658ed1da4c.jpg",
		            "addtime": "2015-10-20",
		            "status": "1"
		        }
		 id：类别的编号
		 typename类别名称，
		 updatetime：更新日期 ，
		 info：说明 ，
		 pic：类别图片地址
		 addtime //添加日期
		 status：状态，1开启0关闭
        </pre>
 		</li>
 		<li>
 		<pre>
		"id": "45",
                "name": "产品页面1",
                "pic": "http://www.tpcms.com/Data/Upload/Ad/20151020/562659033610b.jpg",
                "pic2": "http://www.tpcms.com/Data/Upload/Ad/20151020/5626590524f9e.jpg",
                "pic_des": "呆呆呆呆呆呆地",
                "pic_url": "http://www.speakphp.com",
                "words": "",
                "ad_type": "28",
                "type": "0",
                "status": "1",
                "addtime": "2015-10-20 23:09",
                "begin_date": "2015-10-20 23:09",
                "end_date": "2015-10-30 23:09",
                "add_person": "wangjian",
                "attr_1": "3",
                "attr_2": "3",
                "weight": "1"
            }
            id:广告的编号
            name:广告名称
            pic:图片
            pic2:附加图片
            pic_des：图片描述
            pic_url:图片跳转地址
            words:文字描述
            ad_type:广告类型Id
            type：0图片广告1文字广告
            status:1开启0关闭
            addtime:添加日期
            begin_date //开始日期
            end_date//结束日期
            add_person //添加人
            attr_1: 属性1
            attr_2 属性2
            weight：权重
            </pre>
 		</li>
 	</ul>
 </code>




    </div>

</div>

</body>
</html>